import { observer } from "mobx-react"

import { useAppRoutes } from "./routes";

function App() {
  /**
   * /home
   * 
   * useRoutes([{path: '/home', lement: <Home />}])
   * <BrowserRouter>
   * <Route path='/home' element={<Home />}>   React.createElement(Home);
   * <Route path='/about' element={<About />}>
   * </BrowserRouter>
   * <Button>xxx</Button>
   * 
   */
  return <>
    {useAppRoutes()}
  </>
}

export default observer(App);
